package JVM;

import 算法.NiuKe.*;

import java.util.HashMap;

/**
 * @author: 谢君臣
 * @create: 2020-11-29 10:38
 * @founction: XXXX
 */
public class TestA {
    public static void main(String[] args) {
        int i = -31;
        System.out.println(Integer.toBinaryString(i));
        System.out.println(Integer.toBinaryString(i>>4));
        System.out.println((i>>4));
        System.out.println(i>>>4);
        System.out.println(Integer.toBinaryString(i>>>4));
        A a = new A();
        A b = new B();
        System.out.println(b.val);
        // a.test(1);
        b.test(2);
//        b.test1(1);
    }
}
class A{
    int val = 1;
    public final void test(){
        System.out.println("test");
    }
    public void test(int n){
        System.out.println("test"+val);
    }
}
class B extends A{
    int val = 2;
    @Override
    public void test(int n) {
        System.out.println("B" + val);
    }
    public void test1(){
        System.out.println("Btest1");
    }
}